package appmodelo.modulo1.web.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class JavaUtil {

    public static byte[] getBytesArray(File file) throws IOException {

        FileInputStream fis = new FileInputStream(file);
        byte[] buffer = null;
        buffer = new byte[fis.available()];
        fis.read(buffer);

        return buffer;
    }
}
